package com.moyuduo.java8.interface1;

import org.junit.Test;

/**
*@author litao,School of computer and software engineering,Xihua University
*@date 2020年3月30日
*/
public class InterfaceTest {

	@Test
	public void test1() {
		MySubClass1 mySubClass1=new MySubClass1();
		System.out.println(mySubClass1.method1());//myClass method
	}
	
	@Test
	public void test2() {
		MySubClass2 mySubClass2=new MySubClass2();
		System.out.println(mySubClass2.method1());//myInterface1 default method
	}
	
	@Test
	public void test3() {
		System.out.println(MyInterface1.method2());//interface static method
	}
}
